﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;

namespace WaterRevenueMS.Componnent.Data.Mapping.ReadMeterMS
{
    partial class WaterChargeChangeMap
    {
        partial void WaterChargeChangeMapAppend()
        {
            this.HasKey(t => t.Id);

            this.ToTable("His_JJSL");

            this.Property(t => t.Id).HasColumnName("Jia_JSL_ID")
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);

            this.HasRequired(t => t.MeterInfo).WithMany(d => d.WaterChargeChange).HasForeignKey(t => t.MeterNo);

        }
    }
}
